<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="org.codehaus.groovy.grails.commons.ConfigurationHolder" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <script type="text/javascript" src="${ConfigurationHolder.config.grails.appName}/dojo/dojo.js.uncompressed.js"></script>
    <script type="text/javascript" src="dojoApplication.js"></script>
    <%--
    The reason to use a JSP is that it is very easy to obtain server-side configuration
    information (such as the contextPath) and pass it to the JavaScript environment on the client.
    --%>
    <script type="text/javascript">
        var config = {
            contextPath: "${ConfigurationHolder.config.grails.appName}"
        };
    </script>
</head>
<body>

    <div id="cometdBody"></div>

</body>
</html>
